package com.dragon.modules.yuegou.model.park;

import com.dragon.modules.yuegou.entity.park.CouponMerchantRefEntity;
import com.dragon.modules.yuegou.enums.park.CouponMerchantRefStatus;
import com.dragon.modules.yuegou.model.product.Sku;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * 停车券与商户关系表模型类
 * 
 * @author px
 * @date 2019-04-18 10:07:33
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class CouponMerchantRef extends CouponMerchantRefEntity {

	private static final long serialVersionUID = 1L;
	
	private Sku sku;
	
	public Sku getSku() {
		return sku;
	}

	public void setSku(Sku sku) {
		this.sku = sku;
	}

	/**
	 * 构造一个空停车券与商户关系表模型对象
	 */
	public CouponMerchantRef(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个停车券与商户关系表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public CouponMerchantRef(CouponMerchantRefEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个停车券与商户关系表模型对象
	 * 
	 * @param other 其它对象
	 */
	public CouponMerchantRef(CouponMerchantRef other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置主键
	 * 
	 * @param id 主键
	 * @return 当前对象
	 */
    public CouponMerchantRef id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置
	 * 
	 * @param busdId 
	 * @return 当前对象
	 */
    public CouponMerchantRef busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getSkuId() {
    	return skuId;
    }

    /**
	 * 设置
	 * 
	 * @param skuId 
	 * @return 当前对象
	 */
    public CouponMerchantRef skuId(String skuId) {
    	this.skuId = skuId;
    	return this;
    }

	@Override
	public String getCouponTemplate() {
    	return couponTemplate;
    }

    /**
	 * 设置停车劵id
	 * 
	 * @param couponTemplate 停车劵id
	 * @return 当前对象
	 */
    public CouponMerchantRef couponTemplate(String couponTemplate) {
    	this.couponTemplate = couponTemplate;
    	return this;
    }

	@Override
	public String getCouponTemplateName() {
    	return couponTemplateName;
    }

    /**
	 * 设置
	 * 
	 * @param couponTemplateName 
	 * @return 当前对象
	 */
    public CouponMerchantRef couponTemplateName(String couponTemplateName) {
    	this.couponTemplateName = couponTemplateName;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商户id
	 * 
	 * @param merchantId 商户id
	 * @return 当前对象
	 */
    public CouponMerchantRef merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public Integer getBuyNum() {
    	return buyNum;
    }

    /**
	 * 设置购买数量
	 * 
	 * @param buyNum 购买数量
	 * @return 当前对象
	 */
    public CouponMerchantRef buyNum(Integer buyNum) {
    	this.buyNum = buyNum;
    	return this;
    }

	@Override
	public BigDecimal getBuyPrice() {
    	return buyPrice;
    }

    /**
	 * 设置购买单价
	 * 
	 * @param buyPrice 购买单价
	 * @return 当前对象
	 */
    public CouponMerchantRef buyPrice(BigDecimal buyPrice) {
    	this.buyPrice = buyPrice;
    	return this;
    }

	@Override
	public Integer getUseNum() {
    	return useNum;
    }

    /**
	 * 设置已使用数量
	 * 
	 * @param useNum 已使用数量
	 * @return 当前对象
	 */
    public CouponMerchantRef useNum(Integer useNum) {
    	this.useNum = useNum;
    	return this;
    }

	@Override
	public LocalDateTime getBuyTime() {
    	return buyTime;
    }

    /**
	 * 设置购买时间
	 * 
	 * @param buyTime 购买时间
	 * @return 当前对象
	 */
    public CouponMerchantRef buyTime(LocalDateTime buyTime) {
    	this.buyTime = buyTime;
    	return this;
    }

	@Override
	public Integer getSurplus() {
    	return surplus;
    }

    /**
	 * 设置剩余数量
	 * 
	 * @param surplus 剩余数量
	 * @return 当前对象
	 */
    public CouponMerchantRef surplus(Integer surplus) {
    	this.surplus = surplus;
    	return this;
    }

	@Override
	public String getCheckBy() {
    	return checkBy;
    }

    /**
	 * 设置审核人
	 * 
	 * @param checkBy 审核人
	 * @return 当前对象
	 */
    public CouponMerchantRef checkBy(String checkBy) {
    	this.checkBy = checkBy;
    	return this;
    }

	@Override
	public LocalDateTime getCheckTime() {
    	return checkTime;
    }

    /**
	 * 设置审核时间
	 * 
	 * @param checkTime 审核时间
	 * @return 当前对象
	 */
    public CouponMerchantRef checkTime(LocalDateTime checkTime) {
    	this.checkTime = checkTime;
    	return this;
    }

	@Override
	public String getCheckRs() {
    	return checkRs;
    }

    /**
	 * 设置审核反馈
	 * 
	 * @param checkRs 审核反馈
	 * @return 当前对象
	 */
    public CouponMerchantRef checkRs(String checkRs) {
    	this.checkRs = checkRs;
    	return this;
    }

	@Override
	public Integer getCheckNum() {
    	return checkNum;
    }

    /**
	 * 设置确认数量
	 * 
	 * @param checkNum 确认数量
	 * @return 当前对象
	 */
    public CouponMerchantRef checkNum(Integer checkNum) {
    	this.checkNum = checkNum;
    	return this;
    }

	@Override
	public LocalDateTime getBeginTime() {
    	return beginTime;
    }

    /**
	 * 设置有效起始时间
	 * 
	 * @param beginTime 有效起始时间
	 * @return 当前对象
	 */
    public CouponMerchantRef beginTime(LocalDateTime beginTime) {
    	this.beginTime = beginTime;
    	return this;
    }

	@Override
	public LocalDateTime getEndTime() {
    	return endTime;
    }

    /**
	 * 设置有效结束时间
	 * 
	 * @param endTime 有效结束时间
	 * @return 当前对象
	 */
    public CouponMerchantRef endTime(LocalDateTime endTime) {
    	this.endTime = endTime;
    	return this;
    }

	@Override
	public BigDecimal getPayCash() {
    	return payCash;
    }

    /**
	 * 设置支付现金
	 * 
	 * @param payCash 支付现金
	 * @return 当前对象
	 */
    public CouponMerchantRef payCash(BigDecimal payCash) {
    	this.payCash = payCash;
    	return this;
    }

	@Override
	public LocalDateTime getPayTime() {
    	return payTime;
    }

    /**
	 * 设置支付时间
	 * 
	 * @param payTime 支付时间
	 * @return 当前对象
	 */
    public CouponMerchantRef payTime(LocalDateTime payTime) {
    	this.payTime = payTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人ID
	 * 
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
    public CouponMerchantRef createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public CouponMerchantRef createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public CouponMerchantRefStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]状态：0-待提交-READY、1-未审核-UNCHECK、2-审核通过-PASS、3-已支付-PAYED、4-已失效-INVALID
	 * 
	 * @param status [枚举]状态：0-待提交-READY、1-未审核-UNCHECK、2-审核通过-PASS、3-已支付-PAYED、4-已失效-INVALID
	 * @return 当前对象
	 */
    public CouponMerchantRef status(CouponMerchantRefStatus status) {
    	this.status = status;
    	return this;
    }

}
